DXL to change Displayed Attribute in Tables.

Here's what I've found out about using DXL to query and modify the displayed attribute in tables, a feature new to DOORS v8.2.

Browsed the v8.3 doors.exe and also contacted Telelogic.

I see these commands in the v8.3 doors.exe:
string defaultTableAttribute(Module) // DefaultTableAttributeMod
bool overrideTableAttribute(Module) // OverrideTableAttributeMod
bool enableDefaultTableAttribute(Module) // EnableDefaultTableAttributeMod
void defaultTableAttribute(string) // DefaultTableAttributeSet
void overrideTableAttribute(bool) // OverrideTableAttributeSet
void enableDefaultTableAttribute(bool) // EnableDefaultTableAttributeSet

All seem to be associated with the View menu >Table Attributes ... GUI information; all of which define table attributes for the MODULE, not for individual tables. The last 3 seem to presume the 'current module'.

I also see commands:
bool useDefaultTableAttribute(ViewDef) // viewDefGetUseDefaultTableAttribute
void useDefaultTableAttribute(ViewDef, bool) // viewDefUseDefaultTableAttribute

which I have not experimented with and frankly don't see any corresponding GUI functionality. I suspect these to be future enhancements, where later on you can save the default attribute in a view.

Telelogic responded on how to modify the table attribute of the current table. I wrote the attached code snippet to demonstrate it, I'm sure folks will figure it out from there. The key to this seems to be use of the 'reserved' word before the parameter "Main Column Attribute". Experimenting further, I see that nothing breaks if I were to manually create an attribute in the module also called "Main Column Attribute", thus while below it behaves like a <reserved> attribute, it really is not an attribute. I also notice that if you mis-spell "Main Column AttributeXX", you get a 'no such object attribute' error. Curious.

Anyway, you select a table cell, get the parent table object, and go from there.

Telelogic says that "Main Column Attribute" is currently the only legal parameter of the 'reserved' function.

  • Louie

llandale - Fri Nov 21 11:30:45 EST 2008